package NGUYENTHECUONG_LV2;

public class Bt1Model {

	public double Dientich(double side1, double side2, double side3) {
		double result = 0;
		if((side1 +side2 > side3) &&(side1+side3>side2)&&(side2+side3 > side1)){
			float p =(float) ((side1+side2+side3)/2);
			float f=(float) (p*(p-side1)*(p-side2)*(p-side3));
			result =Math.sqrt(f);
		} else System.out.println("3 canh khong phai la 1 tam giac");
		return result;
	}
}
